package com.nenglai.common.jwt;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;

public class TokenUtil {
    public static String getToken(Long id, String sec) {
        return JWT.create().withClaim("user", id.toString()).sign(Algorithm.HMAC256(sec));
    }
}
